package net.huashitong.ssydt.task.vo;

import io.swagger.annotations.ApiModelProperty;
import net.huashitong.ssydt.task.entity.SsTaskCard;

import java.io.Serializable;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2018.01.10
 */
public class CardsOutVO implements Serializable {

    private static final long serialVersionUID = -3050869618265036364L;
    @ApiModelProperty(value = "卡片id")
    private Long id;//卡片id
    @ApiModelProperty(value = "年份")
    private String years;//年份
    @ApiModelProperty(value = "月份")
    private String months;//月份
    @ApiModelProperty(value = "图片")
    private String images;//图片
    @ApiModelProperty(value = "内容")
    private String content;//内容
    @ApiModelProperty(value = "星级")
    private Integer starLevel;//星级
    @ApiModelProperty(value = "题目id")
    private Long questionId;//题目id
    @ApiModelProperty(value = "年月")
    private String yearMonths;//年月
    @ApiModelProperty(value = "是否显示(true代表已获得)")
    private Boolean isShow = false;//是否显示
    @ApiModelProperty(value = "是否已读")
    private Boolean isRead = true;//是否已读
    @ApiModelProperty(value = "标题")
    private String title;//标题

    public CardsOutVO() {
    }

    public CardsOutVO(SsTaskCard ssTaskCard) {
        this.id = ssTaskCard.getId();
        this.years = ssTaskCard.getYears();
        this.months = ssTaskCard.getMonths();
        this.images = ssTaskCard.getImages();
        this.content = ssTaskCard.getContent();
        this.starLevel = ssTaskCard.getStarLevel();
        this.questionId = ssTaskCard.getQuestionId();
        this.yearMonths = ssTaskCard.getYearMonths();
        this.title = ssTaskCard.getTitle();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getYears() {
        return years;
    }

    public void setYears(String years) {
        this.years = years;
    }

    public String getMonths() {
        return months;
    }

    public void setMonths(String months) {
        this.months = months;
    }

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getStarLevel() {
        return starLevel;
    }

    public void setStarLevel(Integer starLevel) {
        this.starLevel = starLevel;
    }

    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    public String getYearMonths() {
        return yearMonths;
    }

    public void setYearMonths(String yearMonths) {
        this.yearMonths = yearMonths;
    }

    public Boolean getIsShow() {
        return isShow;
    }

    public void setIsShow(Boolean isShow) {
        this.isShow = isShow;
    }

    public Boolean getIsRead() {
        return isRead;
    }

    public void setIsRead(Boolean isRead) {
        this.isRead = isRead;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
